import fetch from '@/util/fetch'
// changePwd
export function changePwd_post(options) {
  return fetch({
    url: 'api/backend/changePwd',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// getFundsFlow
export function fundsFlow_get(options) {
  return fetch({
    url: 'api/backend/fundsFlow',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// goodsList
export function goodsList_get(options) {
  return fetch({
    url: 'api/backend/goodsList',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// isLogin
export function isLogin_get(options) {
  return fetch({
    url: 'api/backend/isLogin',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// login
export function login_post(options) {
  return fetch({
    url: 'api/backend/login',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// orderList
export function orderList_get(options) {
  return fetch({
    url: 'api/backend/orderList',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// rechargeApply
export function rechargeApply_get(options) {
  return fetch({
    url: 'api/backend/rechargeApply',
    method: 'get',
    headers: options && options.headers ? options.headers : {},
    data: (options && options.data) || {}
  })
}

// rechargeQuery
export function rechargeQuery_post(options) {
  return fetch({
    url: 'api/backend/rechargeQuery',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}

// rechargeApply
export function rechargeWechat_post(options) {
  return fetch({
    url: 'api/backend/rechargeWechat',
    method: 'post',
    headers: { 'Content-Type': 'application/json', ...(options && options.headers ? options.headers : {}) },
    data: (options && options.data) || {}
  })
}
